#!/usr/bin/bash
export FLASK_APP="/home/dpt/projects/yingmingapp/yingmingapi/manage.py"
export FLASK_ENV=development
export FLASK_DEBUG=1

if [ $1 ]; then
  if [ $1 == "run" ]; then
    flask run --host=0.0.0.0 --port=5000
  elif [ $1 == "blue" ]; then
    cd application/apps
    flask $1 --name=$2
  else
    flask $1
  fi
fi